package ink.xiaobaibai.response;

/**
 * 统一返回code枚举
 */
public enum ResponseCode {

    /**
     * 通用成功
     */
    SUCCESS(0, "通用成功"),
    /**
     * 通用错误
     */
    ERROR(1, "通用错误"),
    ;

    private final int code;

    private final String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

}
